<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        return $this->view->fetch();
    }

    /**
     * 隐私协议
    */
    public function privacy_policy()
    {
        $data = model('app\index\model\wanlshop\Article')->get(8);
        $this->view->assign('data',$data);
        return $this->view->fetch();
    }

    /**
     * 用户测试
     */
    public function user_agreement()
    {
        $data = model('app\index\model\wanlshop\Article')->get(5);
        $this->view->assign('data',$data);
        return $this->view->fetch();
    }

}
